package com.kuang.scanner;

public class Demo12 {
    public static void main(String[] args) {
        int odd=0;
        int even=0;
        for (int i=0;i<=100;i++){
            if(i%2==0){
                even+=i;
            }else{
                odd+=i;
            }
        }
        System.out.println("奇数和:"+odd);
        System.out.println("偶数和:"+even);
    }
}
